package com.zxw.biz.ov.user.web.interfaces.controller;

import com.zxw.service.video.domain.video.domain.aggregate.BaseQueryParam;
import com.zxw.service.video.domain.video.domain.repository.CacaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxw
 * @date 2020/7/18 12:12
 */
@RestController
@RequestMapping("/caca")
public class CacaController {
    @Autowired
    private CacaRepository cacaRepository;

    @GetMapping("/list")
    public Page Indexcaca(BaseQueryParam baseQueryParam) {
        return cacaRepository.cacaIndex(baseQueryParam);
    }
}
